/**
 * 爬取内容页面时，对html的处理模板
 */
const cheerio = require("cheerio");
module.exports = {
  //菜鸟教程
  runoob: {
    basePath: "https://www.runoob.com",
    selector: "#content", //默认body
    // handleMainHtmlFile(html, fileName) {
    //   return html;
    // },
    // handleMainHtmlFile(html, fileName) {
    //   return html;
    // },
  },
  //掘金
  juejin: {
    basePath: "https://juejin.cn/post",
    selector: ".article-content .markdown-body",
    // handleMainHtmlFile(html, fileName) {
    //   return html;
    // },
    // handleMainHtmlFile(html, fileName) {
    //   return html;
    // },
  },
};
